export const FEEDNUMBER = [
  {
    frontText: '秒 -',
    backText: '秒',
    frontValue: undefined,
    backValue: undefined,
    label: '单视频停留:'
  },
  {
    frontText: '分钟 -',
    backText: '分钟',
    frontValue: undefined,
    backValue: undefined,
    label: '单号培育时间:'
  },
  {
    frontText: '-',
    backText: '',
    frontValue: undefined,
    backValue: undefined,
    label: '点赞比例:'
  },
  {
    frontText: '-',
    backText: '',
    frontValue: undefined,
    backValue: undefined,
    label: '评论比例:'
  },
  {
    frontText: '-',
    backText: '',
    frontValue: undefined,
    backValue: undefined,
    label: '评论比例:'
  }
]

export const FEEDNUMBERMODEL = () => {
  const obj = {}
  FEEDNUMBER.forEach((ele, index) => {
    obj[`frontValue${index}`] = ele.frontValue
    obj[`backValue${index}`] = ele.backValue
  })
  return obj
}

export const EMPTYPARAMS = {
  sleepTime: '',
  raiseTime: '',
  likeRate: '',
  commentRate: '',
  focusRate: ''
}

export const USERPASS = {
  username: [{ required: true, message: '不能为空', trigger: 'change' }],
  passwd: [{ required: true, message: '不能为空', trigger: 'change' }]
}
